<?php
/* @var $this AdvertisingAdminController */
/* @var $data DndBoxanhfoodAdvertising */
?>

<div class="view">
    <?php $data->scenario = 'admin'; ?>
	<b><?php echo CHtml::encode($data->getAttributeLabel('name')); ?>:</b>
	<?php echo CHtml::link(CHtml::encode($data->name),array('view', 'id'=>$data->id)); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('description')); ?>:</b>
	<?php echo CHtml::encode($data->description); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('content_vn')); ?>:</b>
	<?php echo CHtml::decode($data->content_vn); ?>
	<br />
	
	<b><?php echo CHtml::encode($data->getAttributeLabel('content_en')); ?>:</b>
	<?php echo CHtml::decode($data->content_en); ?>
	<br />
	
	<b><?php echo CHtml::encode($data->getAttributeLabel('status')); ?>:</b>
	<?php echo CHtml::encode(($data->status ? 'Đang kích hoạt': 'Ngưng hoạt động')); ?>
	<br />
	<?php $array_type = array('0'=>'Tin tức','1'=>'Banner','2' => 'Về chúng tôi','3'=>'Liên hệ','4'=>'Dịch vụ'); ?>
	<b><?php echo CHtml::encode($data->getAttributeLabel('type')); ?>:</b>
	<?php echo CHtml::encode($array_type[$data->type]); ?>
	<br />
	<b><?php echo CHtml::encode($data->getAttributeLabel('start_datetime')); ?>:</b>
	<?php echo CHtml::encode($data->start_datetime); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('expired_datetime')); ?>:</b>
	<?php echo CHtml::encode($data->expired_datetime); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('creation_datetime')); ?>:</b>
	<?php echo CHtml::encode($data->creation_datetime); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('last_update')); ?>:</b>
	<?php echo CHtml::encode($data->last_update); ?>
	<br />
</div>